/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconMail: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M832 192a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96H192a96 96 0 0 1-96-96V288a96 96 0 0 1 96-96z m32 123.776l-298.752 199.168a96 96 0 0 1-100.704 3.584l-5.792-3.584L160 315.84V736a32 32 0 0 0 28.256 31.776L192 768h640a32 32 0 0 0 32-32V315.776zM832 256H192c-1.888 0-3.744 0.16-5.536 0.48l307.776 205.216a32 32 0 0 0 31.808 2.144l3.712-2.144 307.776-205.216A32.192 32.192 0 0 0 832 256z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconMail.defaultProps = {
  size: 18,
};

export default IconMail;
